/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/deviceActivation',
  name: 'system',
  permission: '系统参数',
  meta: {
    title: '系统配置',
    permission: '系统参数',
    icon: 'shezhiblk',
  },
  children: [
    {
      path: 'systemParameter',
      name: 'systemParameter',
      permission: '系统参数',
      component: () => import('@/views/system/systemParameter'),
      meta: { title: '系统参数', icon: 'dian', permission: '系统参数' }
    },
    {
      path: 'deviceActivation',
      name: 'deviceActivation',
      permission: '装置激活',
      component: () => import('@/views/system/deviceActivation'),
      meta: { title: '装置激活', icon: 'dian', permission: '装置激活' }
    },
    {
      path: 'userPermissions',
      name: 'userPermissions',
      permission: '用户权限',
      component: () => import('@/views/system/userPermissions'),
      meta: { title: '用户权限', icon: 'dian', permission: '用户权限' }
    },
    {
      path: 'networkConfiguration',
      name: 'networkConfiguration',
      permission: '网络配置',
      component: () => import('@/views/system/networkConfiguration'),
      meta: { title: '网络配置', icon: 'dian', permission: '网络配置' }
    },
    {
      path: 'processDictionary',
      name: 'processDictionary',
      permission: '进程字典',
      component: () => import('@/views/system/processDictionary'),
      meta: { title: '进程字典', icon: 'dian', permission: '进程字典' }
    },
    {
      path: 'softwareDictionary',
      name: 'softwareDictionary',
      permission: '软件字典',
      component: () => import('@/views/system/softwareDictionary'),
      meta: { title: '软件字典', icon: 'dian', permission: '软件字典' }
    },
    {
      path: 'eventDictionary',
      name: 'eventDictionary',
      permission: '事件字典',
      component: () => import('@/views/system/eventDictionary'),
      meta: { title: '事件字典', icon: 'dian', permission: '事件字典' }
    },
    // {
    //   path: 'automaticDeletion',
    //   name: 'automaticDeletion',
    //   permission: '自动删除',
    //   component: () => import('@/views/system/automaticDeletion'),
    //   meta: { title: '自动删除', icon: 'dian', permission: '自动删除' },
    //   hidden: true
    // },
    // {
    //   path: 'domainAlarm',
    //   name: 'domainAlarm',
    //   permission: '域名告警',
    //   component: () => import('@/views/system/domainAlarm'),
    //   meta: { title: '域名告警', icon: 'dian', permission: '域名告警' },
    //   hidden: true
    // },
    {
      path: 'equipmentMaintenance',
      name: 'equipmentMaintenance',
      permission: '设备维护',
      component: () => import('@/views/system/equipmentMaintenance'),
      meta: { title: '设备维护', icon: 'dian', permission: '设备维护' }
    },
    {
      path: 'changePassword',
      name: 'changePassword',
      permission: '修改密码',
      component: () => import('@/views/system/changePassword'),
      meta: { title: '修改密码', icon: 'dian', permission: '修改密码' },
      hidden: true
    }
  ]
}

export default systemRouter
